{__NOLAYOUT__}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>TMBC</title>
    <meta name="KeyWords" content="{$Think.config.website.keywords}">
    <meta name="Description" content="{$Think.config.website.description}">
    <link rel="shortcut icon" href="__IMG__/logo.jpg" type="image/x-icon" />
    {css href="__LIB__/bootstrap3/css/bootstrap.min.css" /}

    {css href="__CSS__/bootstrap-table.css" /}

    {css href="__LIB__/font-awesome-4.6/css/font-awesome.min.css" /}

    {css href="__CSS__/animate.css" /}
    {css href="__CSS__/style.css" /}
    {js href="__LIB__/jquery-3.1.0.min.js" /}
    {js href="__LIB__/bootstrap3/js/bootstrap.min.js" /}
    {js href="__JS__/jquery.validate.min.js" /}
    <!-- {js href="__JS__/jquery-nicescroll.js" /}
    {css href="__CSS__/j-select.css" /}
    {js href="__JS__/jquery-jSelect.min.js" /} -->
</head>

<body class="gray-bg">
<!-- Data Tables -->
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>注册</h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="commentForm" novalidate="novalidate" action="{:url('login/register')}" method="post">

                              <input id="cshare" readonly="true" name="share"  type="hidden" class="form-control" required="" value="{$share_username}">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户名：</label>
                            <div class="col-sm-8">
                                <input id="cname" name="username"  type="text" class="form-control" required="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">昵称：</label>
                            <div class="col-sm-8">
                                <input id="cemail" type="texr" class="form-control" name="nickname" required="" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">登录密码：</label>
                            <div class="col-sm-8">
                                <input id="cemail" type="password" class="form-control" name="password" required="" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">确认登录密码：</label>
                            <div class="col-sm-8">
                                <input id="cemail" type="password" class="form-control" name="password2" required="" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">支付密码：</label>
                            <div class="col-sm-8">
                                <input id="cemail" type="password" class="form-control" name="pay_password" required="" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">确认支付密码：</label>
                            <div class="col-sm-8">
                                <input id="cemail" type="password" class="form-control" name="pay_password2" required="" aria-required="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<style media="screen">
  body{
    background-image: url(__IMG__/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
  }
  .select{
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: transparent;
    border:0;
  }
  .m-t{
    color: #333;
  }
  .ibox-content{
    background-color: rgba(255, 255, 255, 0.3);
  }
  .ibox-title h5{
    display: block;
    text-align: center;
    width: 100%;
  }
  .float-e-margins .btn{
    width: 100%;
  }
  input{
    border-radius: 0!important;
    background-color: transparent!important;
    border: 0!important;
    border-bottom: 1px solid #807f7f!important;
    padding: 0 10px!important;
  }
  label{
    color: #0e6eb8;
    font-weight: 400;
    padding-right: 0!important;
  }
  .ibox-title{
    background-color: rgba(255, 255, 255, 0.3);
    border: 0;
    color: #0e6eb8;
  }
  .ibox-title h5{
    font-size: 20px;
  }
  .ibox{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-width: 350px;
    width: 60%;
    max-width: 450px;
  }
  .col-sm-12,.row,.wrapper-content{
    height: 100%;
  }
</style>

<script type="text/javascript">

    function operateFormatter(value, row, index) {
        return [
            '<a class="btn btn-xs edit" href="javascript:void(0)" title="{$Think.lang.Edit}">',
            '<i class="fa fa-edit"></i>',
            '</a>  ',
            '<a class="btn btn-xs delete" href="javascript:void(0)" title="{$Think.lang.Delete}">',
            '<i class="fa fa-trash"></i>',
            '</a>'
        ].join('');
    }

    var operateEvents = {
        'click .edit': function (e, value, row, index) {
            var param = {
                url: "{:url('admin/user/edit');}",
                data: {id: row.id}
            }
            $("#table").gridView('loadModal', param.url,param.data)
        },
        'click .delete': function (e, value, row, index) {
            $("#table").gridView('deleteModal', 'delete', row)

        }
    };

</script>
</body>
</html>
